import Layout from '@/layouts/index.vue';
import { shallowRef } from 'vue';

// 中文注释：首页路由配置
export default [
  {
    path: '/home',
    name: 'Home',
    component: Layout,
    redirect: '/home/index',
    meta: {
      title: { zh_CN: '首页', en_US: 'Home' },
      icon: shallowRef('home'),
      affix: true, // 固定在标签页
    },
    children: [
      {
        path: 'index',
        name: 'HomeIndex',
        component: () => import('@/pages/home/index.vue'),
        meta: {
          title: { zh_CN: '首页', en_US: 'Home' },
          affix: true,
        },
      },
    ],
  },
];
